<?php
/**
 * 前台 基础类
 * @author      HJC <hujianchuang@haowj.com>
 * @update      2014.08.4
 * @since       Version 1.0
 * 
 */
class BaseAction extends  Action
{
    public function __construct()
    {
        parent::__construct();
        $channel = $this->_get('channel');
        $origin  = $this->_get('origin');
        if(!empty($channel)) cookie('HAOWJINFOCHANNEL',$channel,7200);
        if(!empty($origin)) cookie('HAOWJINFOORIGIN',$origin,7200);
    }
}